# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-pgrep
_pkgname=pgrep
pkgver=2020.12.3
pkgrel=6
pkgdesc='A python wrapper for pgre.'
arch=('any')
url='https://pypi.org/project/pgrep/#files'
license=('custom:unknown')
depends=('python')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('773e24c90ae5459bf9358e4b2c4abe77627f23173bfb217decc41d715777607677dc9efe655009a18e02f9cb3a9daa167c7ff38a6cf69693bd78b9a36fad2f53')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --prefix=/usr --root="$pkgdir" -O1 --skip-build
}

